import request from '@/utils/request'
export default{
    //3、查询会员登录日志
    loginLogs(userId){
        return request({
            url:`/admin/core/userLoginRecord/${userId}`,
            method:'GET'
        })
    },
    //2、锁定解锁会员
    lock(id,status){
        return request({
            url:`/admin/core/userInfo/lock/${id}/${status}`,
            method:'PUT'
        })
    },
    //1、条件分页查询会员列表
    page(pageNum,pageSize,searchObj){
        return request({
            url:`/admin/core/userInfo/list/${pageNum}/${pageSize}`,
            method:'GET',
            //searchObj是一个条件对象：{mobile:xxx , userType:1 , status:0}
            params: searchObj
        })
    }
}